<div id="content">
    <h1><?php //$this->renderPartial(array("action"=>"help","controller"=>"index"), array("title"=>"PartialView"))         ?></h1>
    <div>
        <?php
        if (isset($this->tables))
            foreach ($this->tables as $key => $value) :
                $url = $value->status == 1 ? '/order/resume' : '/order/addOrder';
                ?>
                <div id="table-<?php print $value->id ?>" class="left table-bloc <?php if ($value->status == 1) print 'active' ?>">
                    
                    <h3><?php print a($value->label, $url, array('tid' => $value->id)) ?></h3>
                </div>
            <?php endforeach; ?>
    </div>
    <div>
        <table class="tablehead">
            <thead>

                <tr class="colhead">
                    <th>Numero</th>
                    <th><?php print t('food') ?></th>
                    <th><?php print t('price') ?></th>
                    <th><?php print t('image') ?></th>
                    <th><?php print t('action') ?></th>
                </tr>
            </thead>
            <?php
            if (isset($this->menu))
                foreach ($this->menu as $key => $value) :
                    print '<tr>';
                    print '<td>' . $value->id . '</td>';
                    print '<td>' . $value->name . '</td>';
                    print '<td>' . $value->price . '</td>';
                    print '<td>' . img($value->imgpath, 'small') . '</td>';
                    print '<td>' . a('Update', '/admin/updateMenu', array('id' => $value->id)) . '</td>';
                    print '</tr>';
                endforeach;
            ?>
        </table>

    </div>
</div>
